<template>
  <div>
    <div id="weather-v2-plugin-standard"></div>
  </div>
</template>

<script>
export default {
  created() {
    window.WIDGET = {
      CONFIG: {
        layout: 1,
        width: 450,
        height: 150,
        background: 1,
        dataColor: "FFFFFF",
        language: "zh",
        borderRadius: "10",
        key: "2AJCIMNJw7",
      },
    };
    (function (d) {
  var c = d.createElement('link')
  c.rel = 'stylesheet'
  c.href = 'https://apip.weatherdt.com/standard/static/css/weather-standard.css?v=2.0'
  var s = d.createElement('script')
  s.src = 'https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0'
  var sn = d.getElementsByTagName('script')[0]
  sn.parentNode.insertBefore(c, sn)
  sn.parentNode.insertBefore(s, sn)
})(document)
  },
};
</script>

<style>
</style>